<?php

class presentation
{
	public function index($entity, $exception = null, $exception_message = null)
	{
		include ROOT . DS . "application" . DS . "users" . DS . "views" . DS . "index.php";
	}

	public function user_form(entity $entity = null)
	{
		include ROOT . DS . "application" . DS . "users" . DS . "views" . DS . "user_form.php";
	}

	public function delete_user()
	{
		echo '
		<p class="ui-state-default ui-corner-all ui-helper-clearfix"><img src="theme/ikonky/user_delete.png"> Smazání uživatele</p>
		<form method="post" action="index.php?modul=users&action=delete_user&id='.$_GET["id"].'">
			<p align="center">Opravdu chcete smazat zvoleného uživatele? <br><b>Smazání uživatele je nenávratné!</b></p>
			<p align="center"><button type="submit" class="button">
				<img src="theme/ikonky/user_delete.png" align="absmiddle">
				Smazat uživatele
			</button></p>
		</form>
		';
	}

	public function block_user()
	{

	}

	public function group_form()
	{

	}

	public function delete_group()
	{

	}

	public function page_list()
	{

	}

	public function reporting($action, $for)
	{
		switch($action)
		{
			case "empty":
				echo "<p class='ui-state-highlight ui-corner-all'><img src='theme/ikonky/error.png' align='absmiddle'> ".$_SESSION[$action][$for]."</p>";
				break;

			case "success":
				echo "<p class='uspech ui-corner-all'><img src='theme/ikonky/tick.png' align='absmiddle'> ".$_SESSION[$action][$for]."</p>";
				break;

			case "warning":
				echo "<p class='ui-state-highlight ui-corner-all'><img src='theme/ikonky/error.png' align='absmiddle'> ".$_SESSION[$action][$for]."</p>";
				break;

			case "error":
				break;
		}
	}
}

?>